]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
extensionDownloader: Fix loading of downloaded extensions
authorJasper St. Pierre <jstpierre@mecheye.net>
Mon, 25 Jun 2012 21:57:39 +0000 (17:57 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Mon, 2 Jul 2012 22:29:56 +0000 (18:29 -0400)
We refactored the ExtensionSystem API to take an extension object,
but forgot to update the downloader.

https://bugzilla.gnome.org/show_bug.cgi?id=679099

js/ui/extensionDownloader.js

index c19559adb20a05bcf3264eec9767bf3fe51b8f45..ad7c5f539edc6add041ae9f172bd6c6dabc08dd6 100644 (file)
@@ -91,7 +91,8 @@ function gotExtensionZipFile(session, message, uuid) {
             global.settings.set_strv(ExtensionSystem.ENABLED_EXTENSIONS_KEY, enabledExtensions);
         }
 
-        ExtensionSystem.loadExtension(dir, ExtensionUtils.ExtensionType.PER_USER, true);
+        let extension = ExtensionUtils.createExtensionObject(uuid, dir, ExtensionUtils.ExtensionType.PER_USER);
+        ExtensionSystem.loadExtension(extension);
     });
 }